<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>意向订单提交</title>
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">

    <link rel="stylesheet" href="../../../css/wx/mui.min.css">
    <link rel="stylesheet" href="../../../css/wx/app.css"/>
    <link rel="stylesheet" href="../../../css/wx/style.css"/>
    <link rel="stylesheet" href="../../../css/wx/wx-iconfont.css">

    <script type="text/javascript">
        var pageConfig = {
            jss: ["app/yxsjxd/order-submit"],
//            cb: function (o) {
//
//                // 不影响初始页面的js, 可以延迟引入
//                require(['mbsicon'], $.noop);
//
//                app.requireCss(['icons-extra', 'animate.min'], doc);
//
//            }
        };
    </script>
    <script data-main="../../../js/wx/public/config" src="../../../js/require.js"></script>
    <style>
        .mui-content {
            padding: 0;
        }

        .mui-content > .mui-table-view:first-child {
            margin-top: 0;
        }

        .mui-content > div {
            width: 100%;
        }

        .mui-icon {
            font-size: 0.453333rem;
        }

        .address-box {
            height: 2.266667rem;
            width: 100%;
        }

        .address-box > li {
            height: 100%;
        }

        .content-center {
            position: relative;
            flex: 1;
        }

        .content-center .mui-card-footer:before {
            height: 0;
        }

    </style>
</head>

<body>
<div class="mui-content mui-fullscreen flex-container-v bg-color-wihte wf-imgBox">
    <ul id="address-box" @tap.stop="showCustomers" class="mui-table-view address-box">
        <li v-show="address.GWCM011" class="mui-table-view-cell mui-media">
            <a href="javascript:;" class="mui-navigate-right">
                <div class="mui-media-body">
                    <p class="margin-l-10">{{address.GWAKL004}}</p>
                    <div class="flex-container-h margin-r-10" style="align-items: baseline;">
                        <span class="mui-icon mui-icon-location color3"></span>
                        <p class="mui-ellipsis-2" style="flex: 1;">{{address.GWCM020}}</p>
                    </div>
                </div>
            </a>
        </li>
        <li v-show="!address.GWCM011" class="mui-table-view-cell mui-media flex-container-v">
            <div class="flex-container-h">
                <span class="iconfont icon icon-0010"></span>
                <p class="margin-l-10">选择客户</p>
            </div>
        </li>
    </ul>
    <div class="content-center ">
        <div class="mui-scroll-wrapper" style="bottom: 64px;">
            <div id="contentCenter" class="mui-scroll">
                <ordersubmit-template :model="items"></ordersubmit-template>
            </div>
        </div>
    </div>
    <div id="contentFooter" class="footBtn flexl shadow2">
        <div class="footBtn-count-left" style="flex: 1 1 0%;">
            合计：
            <span id="num">￥{{countAmount | priceFMT}}</span></div>
        <button type="button" @tap.stop="subOrder" id="sumOrder" class="wf-pulic-bg edit" style="width: 50%;">立即下单</button>
    </div>


</div>

<script id="cartitem-template" type="text/x-template">
    <ul class="mui-table-view">
        <li v-for="(val,index) in model" class="mui-table-view-cell mui-media">
            <a tap.stop="showDetail(val.ima01,val.GCA07, index)" href="javascript:;">
                <div class="imgBox">
                    <img :src="val.GWAM015 | goodsImgsUtils">
                </div>
                <div class="mui-media-body wf-price-color">
                    <h4>{{val.GWAML003}}</h4>
                    <div class="mui-card-footer">
                        <p>￥{{val.GWCM004 | priceFMT}}<span>/{{val.GWAM008||val.GWCM002|goodsUnits}}</span></p>
                        <div>
                            X{{val.GWCM003}}
                        </div>
                    </div>
                </div>
            </a>
        </li>
    </ul>
</script>
</body>

</html>